vard ds = new Ext.data.GroupingStore
({ proxy:new Ext.data.HttpProxy({ url:'data.php'}),

reader: new Ext.data.JsonReader({
	id:'Completion_ID',
	totalPropery: 'totalCount',
	root: "myInventory",
	fields
	[{name: 'VOZAC_ID', type: 'int', mapping: 'VOZAC_ID'},
	{name: 'IME', type: 'varchar', mapping: 'IME'},
	{name: 'PREZIME', type: 'varchar', mapping: 'PREZIME'},
	{name: 'TIME_CREATED', type: 'datetime', mapping: 'TIME_CREATED'}]}),
	
	sortInfo:{field: 'VOZAC_ID', direction: "ASC"},
	groupField: 'VOZAC_ID',
	remoteSort: true
});

var mycolModel = new Ext.grid.ColumnModel
({
	columns:
	[
		{header: 'VOZAC_ID', width:70, dataIndex: 'VOZAC_ID'},
		//{header: '', width:70, dataIndex: ''},
		{header: 'TIME_CREATED', width:70, dataIndex: 'TIME_CREATED',
		renderer: Ext.util.Format.dateRenderer(Ext.form.DateField.prototype.format)}
	]
});

ds.load({params:{start:0, limit:1500}});

var grid = new Ext.grid.EditorGridPanel
({
	store: ds,
	stripeRows: true,
	width: 630,
	height: 315,
		autoSizeGrid: false,
		title: 'BLABLA',
		collapsible: false,
		animCollapse: false,
		cm: mycolMOdel,
		selModel: new Ext.grid.RowSelectionModel(),
		viewConfig:
		{
			forceFit: true
		}
});

grid.render('db-grid);


	